include(${QT_USE_FILE})
set(amarok_backend_SRCS Plugin.cpp QSignalWrapper.cpp)
set (AMAROK_BACKEND_MOC_HEADERS QSignalWrapper.h)
qt4_wrap_cpp (AMAROK_BACKEND_MOC_OUTPUT ${AMAROK_BACKEND_MOC_HEADERS})

add_library(amarok_backend SHARED ${amarok_backend_SRCS} ${AMAROK_BACKEND_MOC_OUTPUT})
set_target_properties(amarok_backend PROPERTIES PREFIX "" LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/src)
target_link_libraries(amarok_backend ${QTDBUS_LIB})

install(TARGETS amarok_backend LIBRARY DESTINATION ${pluginDirectory})
